package messaage;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class LogoutMsg extends Message {

	private String username;
	
	public LogoutMsg(String _username) {
		this.username = _username;
		this.type = "LogoutMsg";
	}

	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";
		
		return xml;
	}
	public String getUsername(){
        return this.username;
    }
}
